<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var appenDiv = function () {
        for (var i = 0;i<100;i++){
            // 创建一个标签
            var div = document.createElement('div');
            div.innerHTML = i;
            //将标签加到body 后面类似 push
            document.body.appendChild(div);
            div.style.display = 'none'

        }
    }
    appenDiv()
</script>
</body>
</html>